<template>
  <div>
    <el-container>
      <el-header>Header
        <router-link to="/about">学生查询</router-link>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!-- <el-button type="success" @click="aaa('/')">学生</el-button>
          <router-link to="/">学生管理系统</router-link>
          <div></div> -->
          <!-- <el-button type="success" @click="aaa('/about')">学生查询</el-button> -->
          <!-- <router-link to="/about">学生查询</router-link> -->
          <NavView></NavView>
        </el-aside>
        <el-main> <router-view /></el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import NavView from '@/components/NavView.vue'

const options = {
  components: {
    NavView
  },
  methods: {
    aaa(url) {
      this.$router.push(url);
      // console.log(url);
    }
  }
}
export default options;
</script>
<style>
.el-header,
.el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  /* line-height: 200px; */
  height: calc(100vh - 60px);
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body>.el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>

